package com.eet.struts.snmp.service.impl;

import com.eet.struts.snmp.service.SnmpService;
import com.eet.struts.snmp.util.SnmpUtils;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Snmp服务实现类
 *
 * @author zhangzhang
 */
@Service
public class SnmpServiceImpl implements SnmpService {

    @Override
    public List<Map<String, String>> snmpGet(String ip, String community, int port, String oid) {
        return SnmpUtils.snmpGet(ip, community, port, oid);
    }

    @Override
    public void snmpGetList(String ip, String community, int port, List<String> oidList) {
        SnmpUtils.snmpGetList(ip, community, port, oidList);
    }
}
